<?php
class App_Model_Acl
{
    /**
     * Ini file path
     * 
     * @var string 
     */
    protected $_filepath;

    /**
     * Set default file path
     * 
     * @return void
     */
    public function __construct()
    {
        $this->setFilePath(APPLICATION_PATH . "/configs/acl.ini");
    }

    /**
     * Get white list from ini file
     * 
     * @return array
     */
    public function getWhitelist()
    {
        $config = new Zend_Config_Ini($this->_filepath, "whitelist");
        return $config->toArray();
    }
    
    /**
     * Set ini file path
     *
     * @param string $path
     * 
     * qreturn void
     */
    public function setFilePath($path)
    {
        $this->_filepath = $path;
    }
}